
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __SITRONIX_H
#define __SITRONIX_H

#ifdef __cplusplus
extern "C" {
#endif

/* Set Multi-touch as supported */
#if !defined(TS_MONO_TOUCH_SUPPORTED)
#define TS_MULTI_TOUCH_SUPPORTED        0
#endif /* TS_MONO_TOUCH_SUPPORTED */

/* Includes ------------------------------------------------------------------*/
#include "TouchScreen.h"

#if (TOUCH_TYPE == TOUCH_SITRONIX)

  /* I2C Slave address of touchscreen FocalTech FT5336 */
#define SITRONIX_I2C_ADDRESS            ((uint8_t)0xE0U)

  /* Maximum border values of the touchscreen pad */
#define SITRONIX_MAX_WIDTH                    ((uint16_t)480)     /* Touchscreen pad max width   */
#define SITRONIX_MAX_HEIGHT                   ((uint16_t)480)     /* Touchscreen pad max height  */


#define SITRONIX_SW_RESET                     0x02


void 	Touch_Init(void);
void 	Touch_Reset(void);
UINT8	Touch_ReadVersion(void);
UINT16	Touch_ReadID(void);
UINT8 	Touch_ReadCoord(Coord *coord);

#if (TS_MULTI_TOUCH_SUPPORTED == 1)

void ft5336_TS_GetGestureID(uint16_t DeviceAddr, uint32_t * pGestureId);

void ft5336_TS_GetTouchInfo(uint16_t   DeviceAddr,
                            uint32_t   touchIdx,
                            uint32_t * pWeight,
                            uint32_t * pArea,
                            uint32_t * pEvent);
#endif 

#endif

#ifdef __cplusplus
}
#endif
#endif /* __FT5336_H */


